import Vue from 'vue'
import App from './App'
import router from './router'
import store from "./store";
import api from "./api";
import global from "@/utils/global";
import i18n from './i18n';
import ElementUi from 'element-ui';
import * as echarts from 'echarts'
import 'element-ui/lib/theme-chalk/index.css'
import 'font-awesome/css/font-awesome.min.css'

Vue.config.productionTip = false
Vue.use(ElementUi) // 注册使用ElementUI
Vue.use(api) // 注册使用API模块
// Vue.use(enumData) // 注册使用枚举
Vue.prototype.global = global; // 挂载全局配置模块
Vue.prototype.$echarts = echarts // 挂载全局用echarts
new Vue({
  el: '#app',
  store,
  router,
  i18n,
  components: { App },
  template: '<App/>'
})
